package com.cangxuan.backend.service.impl;

import com.cangxuan.backend.dao.IUserGoodsDao;
import com.cangxuan.backend.entity.UserGoods;
import com.cangxuan.backend.service.IUserGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class UserGoodsServiceImpl extends BaseServiceImpl implements IUserGoodsService {

    IUserGoodsDao userGoodsDao;
    @Autowired
    public void setUserGoodsDao(IUserGoodsDao userGoodsDao) {
        this.userGoodsDao = userGoodsDao;
    }

    @Override
    public List<UserGoods> list() {
        return userGoodsDao.selectByUserId(getCurrentUser().getId());
    }


}
